13:23 | 21/11/24 |
HTML Code:
<!--parser:xtscript-->
function youtube $link=http://m.youtube.com/watch?hl=vi&client=mv-google&gl=US&v=vkWwEgZrbmc;
var $i = <xt:get_device_template />
if $i==web
var $h = 375
var $w = 500
else
var $h = 180
var $w = 240
endif
var $l = call strlen $val=$link
if $l == 11
var $id = $link
else
var $start = call strpos $haystack=$link;$needle=v=;
var $start = ($start+2)
var $id = call substr $val=$link;$start=$start;$length=11;
endif
print <div class="video"><object type='application/x-shockwave-flash' data='http://www.youtube.com/v/$id' width='$w' height='$h'> <param name='movie' value='http://www.youtube.com/v/$id' /> <param name='quality' value='default' /><param name='allowFullScreen' value='true' /> <!-- Fallback content --><a onclick='_gaq.push(['_trackEvent', 'Outgoing', 'www.youtube.com', '/watch?v=$id'])' href='$link'> YouTube Video:<br /><img src='http://img.youtube.com/vi/$id/0.jpg' width='$w' height='$h' alt='Click here to view on youtube' /></a></object></div>
endfunction
<!--/parser:xtscript-->
SD:
<!--parser:xtscript-->
call youtube $link=link youtube
<!--/parser:xtscript-->
or dùng:
<xt:call function="youtube" link="link youtube">
->Lưu ý:
- include thì dùng call @youtube
- Không nên dùng include vì sẽ tăng thời gian xử lý của server => lag. (inc: 5x-7x, không inc: 0x-1x)
LIÊN HỆ
• Admin: Hàn Thiện Hậu
• Email:
vampirecarnovora@gmail.com
0nline : 1
Hôm nay : 1
Tổng cộng : 1173
Best Wap Sites
Free Downloads Sites!© Powered by Tamhoangdk
hosting by Xtgem.com